// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.audio;

import fmod.fmod.FMOD_STUDIO_PARAMETER_DESCRIPTION;
import java.util.ArrayList;

public final class FMODParameterList {
    public final ArrayList<FMODParameter> parameterList = new ArrayList();
    public final FMODParameter[] parameterArray = new FMODParameter[96];

    public void add(FMODParameter parameter) {
        this.parameterList.add(parameter);
        if (parameter.getParameterDescription() != null) {
            this.parameterArray[parameter.getParameterDescription().globalIndex] = parameter;
        }
    }

    public FMODParameter get(FMOD_STUDIO_PARAMETER_DESCRIPTION fMOD_STUDIO_PARAMETER_DESCRIPTION) {
        return fMOD_STUDIO_PARAMETER_DESCRIPTION == null ? null : this.parameterArray[fMOD_STUDIO_PARAMETER_DESCRIPTION.globalIndex];
    }

    public void update() {
        for (int _int = 0; _int < this.parameterList.size(); _int++) {
            ((FMODParameter)this.parameterList.get(_int)).update();
        }
    }
}
